package com.ticketbooking.entity;

import javax.persistence.*;

@Entity
@Table(name = "managerinf",schema = "ticketbooking")
public class ManagerInfEntity {
    private String manid;
    private String manname;
    private String realname;
    private String manphone;
    private String manrole;

    @Id
    @Column(name = "manid")
    public String getManid() {
        return manid;
    }

    public void setManid(String manid) {
        this.manid = manid;
    }

    @Basic
    @Column(name = "manname")
    public String getManname() {
        return manname;
    }

    public void setManname(String manname) {
        this.manname = manname;
    }

    @Basic
    @Column(name = "realname")
    public String getRealname() {
        return realname;
    }

    public void setRealname(String realname) {
        this.realname = realname;
    }

    @Basic
    @Column(name = "manphone")
    public String getManphone() {
        return manphone;
    }

    public void setManphone(String manphone) {
        this.manphone = manphone;
    }

    @Basic
    @Column(name = "manrole")
    public String getManrole() {
        return manrole;
    }

    public void setManrole(String manrole) {
        this.manrole = manrole;
    }

    @Override
    public boolean equals(Object o){
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        ManagerInfEntity that = new ManagerInfEntity();
        return (manname != null ? manname.equals(that.getManname()) : that.getManname() == null) &&
                (manid != null ? manid.equals(that.getManid()) : that.getManid() == null)&&
                (realname != null ? realname.equals(that.getRealname()) : that.getRealname() == null)&&
                (manphone != null ? manphone.equals(that.getManphone()) : that.getManphone() == null)&&
                (manrole != null ? manrole.equals(that.getManrole()) : that.getManrole() == null);
    }
}
